<template>
  <div id="app">
    <router-view :key="key" />
  </div>
</template>
<script>
export default {
  name: "app",
  components: {},
  data() {
    return {};
  },
  computed: {
    key() {
      return this.$route + new Date(); //避免vue复用相同组件，导致子路由页面不刷新的问题
    }
  },
  methods: {}
};
</script>

<style lang="scss"></style>
